import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

// 导入UI组件库
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
Vue.use(ElementUI);

// 全局组件
import QfCard from "@/components/qf-card";
import QfTable from "@/components/qf-table";
import QfForm from "@/components/qf-form";
Vue.component("qf-card", QfCard);
Vue.component("qf-table", QfTable);
Vue.component("qf-form", QfForm);

// 导入混入、过滤器、自定义指令
import "@/utils/mixins";
import "@/utils/filters";
import "@/utils/directives";

// 导入全局导航守卫
import "./permission";

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
